package com.example.boot.mapper;

import com.example.boot.bean.City;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

/**
 * @author shkstart
 * @creat 2021-04-07-下午1:37
 */
@Mapper
public interface CityMapper {
    @Select("select * from city where id=#{id}")
    @Options()//可以对该sql语句进行设置，比如有resultSetType等
    public City getById(Long id);
}
